package org.arduomo.irserial.ui;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.JButton;
import javax.swing.JPanel;

import org.arduomo.irserial.IRConfig;

public class IRRemotePanel extends JPanel implements KeyListener {

	private IRConfig config;
	private JButton jButton;
	StringBuffer buffer;

	public IRRemotePanel(IRConfig config) {
		super();
		this.config = config;
		this.buffer = new StringBuffer();
		jButton = new JButton("TV");
		addKeyListener(this);
	}

	@Override
	public void keyPressed(KeyEvent ev) {
		ev.consume();
		char keyChar = ev.getKeyChar();
		buffer.append(keyChar);
		String command = buffer.toString();
		
	}

	@Override
	public void keyReleased(KeyEvent arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void keyTyped(KeyEvent arg0) {
		// TODO Auto-generated method stub

	}

}
